package com.hmall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.order.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 修改订单状态
     * @param id
     * @param i
     */
    @Update("update tb_order set status = #{status} where id = #{i}")
    void updateByStatus(Long id, int i);
}
